//package 注解开发管理第三方bean.main.java.com.itheima;
//
//import com.itheima.config.JdbcConfig;
//import com.itheima.config.SpringConfig;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//
//import javax.sql.DataSource;
//
//public class App {
//    public static void main(String[] args) {
////        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
////        DataSource dataSource = ctx.getBean(DataSource.class);
////        System.out.println(dataSource);
//        ApplicationContext ioc=new AnnotationConfigApplicationContext(SpringConfig.class);
//        DataSource bean = ioc.getBean(DataSource.class);
//        System.out.println(bean);
//        JdbcConfig bean1 = ioc.getBean(JdbcConfig.class);
//        bean1.save();
//    }
//}
